﻿using DotNetOpenAuth.AspNet.Clients;
using Microsoft.AspNet.Membership.OpenAuth;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using WeSpotClient;

namespace  WeSpot
{
    internal static class AuthConfig
    {


        public static void RegisterAuth()
        {
            // See http://go.microsoft.com/fwlink/?LinkId=252803 for details on setting up this ASP.NET
            // application to support logging in via external services.

            
            //Func<DotNetOpenAuth.AspNet.IAuthenticationClient>  aut =  new Func<DotNetOpenAuth.AspNet.IAuthenticationClient>CreateClientAuth;
            WeSpotClientOAuth2 cl = new WeSpotClientOAuth2("WeSpot"); 

            OpenAuth.AuthenticationClients.Add("WeSpot", cl.CreateClientAuth);


            //OpenAuth.AuthenticationClients.AddTwitter(
            //    consumerKey: "your Twitter consumer key",
            //    consumerSecret: "your Twitter consumer secret");

            OpenAuth.AuthenticationClients.AddFacebook(
                appId: "1409686772621514",
                appSecret: "c727ce18349262d24c091f8aae5a70b0");

            //OpenAuth.AuthenticationClients.AddMicrosoft(
            //    clientId: "your Microsoft account client id",
            //    clientSecret: "your Microsoft account client secret");
            OpenAuth.AuthenticationClients.AddGoogle();

            //OpenAuth.AuthenticationClients.Add("LinkedIn", () => new LinkedInClient("key", "secret"));
        }
    }
}